//Setup vars
var target = UIATarget.localTarget();
var tabBar = target.frontMostApp().mainWindow.tabBar();
var navBar = target.frontMostApp().mainWindow().navigationBar();
//Utility functions
target.deactivateAppForDuration(1); // kicks the app out to the springboard 
target.delay(1);    //pauses the main thread
target.frontMostApp().interfaceOrientation(); //returns orientation 0/1/2
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_LANDSCAPELEFT); //example orientation change
target.frontMostApp().version(); // returns app version 
target.logElementTree(); //returns a tree of nodes on screen 

.tap(); //taps the screen
.doubleTap(); //double taps the screen

//Logging functions
UIALogger.logStart("started");
UIALogger.logMessage("message during");
UIALogger.logPass("Compeleted successfully");
UIAlogger.logFail("Didn't perform correctly");

//daisy chaining actions
target.frontMostApp().mainWindow().navigationBar().leftButton().tap(); // clicks top left button
//

//class references
UIAActionSheet
UIAActivityIndicator
UIAAlert
UIAApplication
UIAButton
UIAEditingMenu
UIAElement
UIAElementArray
UIAHost
UIAKey
UIAKeyboard
UIALink
UIALogger
UIANavigationBar
UIAPageIndicator
UIAPicker
UIAPickerWheel
UIAPopover
UIAProgressIndicator
UIAScrollView
UIASearchBar
UIASecureTextField
UIASegmentedControl
UIASlider
UIAStaticText
UIAStatusBar
UIASwitch
UIATabBar
UIATableCell
UIATableGroup
UIATableView
UIATarget
UIATextField
UIAToolbar
UIAWebView
UIAWindow
UITextView
//